﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Dashboard.Models
{
    public class TimeTag
    {
        public readonly int Hour;
        public readonly int Minute;
        public readonly int Seconds;
        public string Error;
        public TypeOfError TypeOfError;

        public TimeTag(int hour, int minute, int seconds, string error, TypeOfError typeOfError)
        {
            this.Hour = hour;
            this.Minute = minute;
            this.Seconds = seconds;
            this.Error = error;
            this.TypeOfError = typeOfError;
        }

        public bool IsNull()
        {
            return this.Error == null;
        }
    }
}